package priv.pront.code.lanqiao.competition.course.date0328;

import java.util.Arrays;
import java.util.Scanner;

public class 第十届省赛C组_等差数列 {

    static int N, max = Integer.MAX_VALUE;
    static int[] arr;

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        N = scanner.nextInt();
        arr = new int[N];
        for (int i = 0; i < N; i++) {
            arr[i] = scanner.nextInt();
        }
        Arrays.sort(arr);
        for (int i = 1; i < N; i++) {
            if(arr[i] == arr[i - 1]){
                System.out.println(N);
                return;
            }
            max = Math.min(max, arr[i] - arr[i - 1]);
        }
        System.out.println((arr[N - 1] - arr[0]) / max + 1);
    }
}
